import request from "@/util/loginandregiter";
// 验证手机号是否被注册过
export const checkedTel = (tel: string) => request.post('/user/docheckphone', { tel })

// 获取验证码
export const getCode = (tel: string) => request.post('/user/dosendmsgcode', { tel })

// 验证验证码
export const checkedCode = (tel: string, telcode: string) => request.post('/user/docheckcode', {
    tel, telcode
})

// 确认注册
export const register = (tel: string, password: string) => request.post('/user/dofinishregister', {
    tel, password
})